<template>
  <div class="todo-header">
    <input type="text" id="newTodo" placeholder="请输入您的任务，回车确认" @keyup.enter="addList" />
  </div>
</template>

<script>
export default {
  name: "TodoHeader",
  methods:{
    addList(event){
      this.$bus.$emit("addList",event)
    }
  }
};
</script>

<style>
</style>